package com.cyf.util;

/**
 * 类名：AlipayConfig
 * 功能：基础配置类
 * 详细：设置帐户有关信息及返回路径
 */
public class AlipayConfig {


    // 以下是沙箱环境：
//    public static String APP_ID = "2016080300155107";
//    public static final String UNIFIEDORDER_URL = "https://openapi.alipaydev.com/gateway.do";
//    public static final String QUERYORDER_URL = "https://openapi.alipaydev.com/gateway.do";
//    public static final String SELLER_ID = "2088102169718980";
    // 沙箱环境结束


    public static String APP_ID = "2017030105986161";

    /* 沙箱环境需要传递。生产环境可以不传。合作身份者ID，签约账号，以2088开头由16位纯数字组成的字符串，查看地址：https://openhome.alipay.com/platform/keyManage.htm?keyType=partner */
    public static final String SELLER_ID = "2088621454882981";

    /** 商户的私钥,需要PKCS8格式，RSA公私钥生成：https://doc.open.alipay.com/doc2/detail.htm?spm=a219a.7629140.0.0.nBDxfy&treeId=58&articleId=103242&docType=1 **/
    public static String APP_PRIVATE_KEY = "MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQD3J5sS64+uGdfl" +
            "PycPH2ZbB3tNqifDVJaHKQSLow/GVRoRSbKppGtij+wYFmeKFUF1eoxkBa5FPsaC" +
            "auNlyRU4zxoXNThYsRzm7SvUEAwjd8VA3F9jyQZHa1x8u/fwH2++jl/3TTBhxMbg" +
            "vTwSpPM3n/iJe42omL3ZStb51qOmGOhd1OM8iJq9qStRqo7o7If0t9V0TvBnVvBK" +
            "6LDJ8uNzJBxwwzbtOdrZShfTwB5pVmBJOfE56N/rqziD0jYe11Fc7YcinFJt/BC6" +
            "x7ayLCzm4winUDvDnHxkcgQU6Yt3BZw1CxgfThoL2zvcZpPLy8x/ct9Ov6GGJIfV" +
            "grpsHLWXAgMBAAECggEBALQQi9+N9WEPfQaNKyTOaKEbY08jD9M0lnKkhKZDR6Pk" +
            "rpg3zE3h90aYupaWBBtK/yTbAtuAdAYJBVFRFJk8lhSMdmLAKGwdpYPs+UiH5IAW" +
            "q4Rkya6Gb+eqpXhO7gVosd3wFqSy/PPODGMCG3kt6fD1wHpRpNRXa8Gaz+K36QSB" +
            "pIgtPT2Tw4FBqOU8hNf10JsnKX/aX7jZwYkzBafLaxC2rddjnQaLw4+rmwZcb0Dn" +
            "UjSnbkGjAaUrrymXZHiY3ZEMpAyf+Caa6tCFlR8Wo8H3jT6YuXApMuWmc+wi6bnB" +
            "PSvh+ScCiLd1HpwQ77P+AM6qVygAVCHapB/I4VzgWrECgYEA/bmNVzJSB6NdQ7b6" +
            "Zx32ie75Xw3up9M5q/oBIm6pdFxvGsmEPA6xS56G8t/4A1MoaNFj74nf1l5bmFz+" +
            "FW0tmC9Vo1lBs4goFxPyHtJmkjdADkvp0M2jVk7FaKVrDZGBuXHvjrn8w/f3JnsZ" +
            "41A+u8c0LnsJWNnCQaYOOuSU8fkCgYEA+V74rP5EfM3CRZPUEoP0K/HVEEAxB1kl" +
            "G9oyIvm/k9Cdxu1qhkvxeB5mB/vX0T1WafhuLKkTFVt2aNnI8A8dHruE2amUwfWi" +
            "NkXbaZmXBKeb0bBE1oU3K97h2v56W9YME3X5k4ChoKhSenYRRKESsuCkyYKLr3Ak" +
            "aYbWmpMYyA8CgYBLQu8aHmMWwO65V12PmOO4pppyB7/zKETDLrWHcSvyyDhsybnf" +
            "1rvgonWFNcprsg8aiIIMW+l5vSOOXoc/89LCgcf1XFSQ3KKHtfLsEZ07YgguNXZ1" +
            "6Ym54EPOdsL6k17Xk2RsAd9ogfVeBMX5F6SELuLbpsNvB6kHsCoobgWAgQKBgQDB" +
            "kuhkmUgevTY1/mfcK5QJ3MKwx7OHabq1oS3UGpyNKJ6hQcC0GRWLUcWQIv3Hzd5b" +
            "il4zytcmeAY1pAEn4AORzKx2rf3shjlx+c41beVd1qHNJxB4mZZXNr+J2Iqw6Toc" +
            "jTK8Pli4tpC3wRjsdkBmnJ0uU2kNOXb6d5H1EYRmHwKBgFemo0RgOcKM32WbZg1d" +
            "77lmAX0JsmQMFr8ivbOVIrcP85LhBAwhZQ3YWOaEB3B2TqwAl9HZeMeHxZOLt5XW" +
            "DNPqqlDHUte8OdLW8HkMl0E+3TvOV6gWBaen3eiKPIWVodZWSE0puxiPVanmPsGt" +
            "BEoeKWPcdyw0zEkMMqfJz5R1";

    /** 支付宝的公钥，查看地址：https://openhome.alipay.com/platform/keyManage.htm?keyType=partner **/
    public static String ALIPAY_PUBLIC_KEY = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAv8bwgSHeHxKvh4Wc8iYFaaBCz5MpxhQXCy+CANR2mQQmthPGuU+7ZQfqaRAwSysRdhjsfV1gZOG8SqaVwWD4k01SbHjtleYI/jPAgFi1qPsmvDNlGwKSlLL4M6lvOVEf0WvswYiNZbYjkp1JxCyoRRN4WdlnisiA9VhG0gg3+g2RGXLeADdDlY5wG8qp/48OQ7dC6x8hs2RAj6Ms0HO0JxJGyTdG8MwTVLZ5a1lqFmzecFrxcuOoziSVBJPZ2bTuiWD1zaHL6G/PPCAfUqK+gR6ByT7rpo0pi6uJpOstfwvF6UO3YD0xXl4JgRay1zP+DxTRnwIGLigNZYeQNkhbPQIDAQAB";

    /** 签名方式 **/
    public static String SIGN_TYPE = "RSA2";

    /** 调试用，创建TXT日志文件夹路径，见AlipayCore.java类中的logResult(String sWord)打印方法。 **/
    public static String LOG_PATH = "C://";

    /** 字符编码格式 目前支持 gbk 或 utf-8 **/
    public static String CHARSET = "utf-8";

    /** 未付款支付宝交易的超时时间(m-分钟) **/
    public static String TIMEOUT_EXPRESS = "30m";

    /** 销售产品码，商家和支付宝签约的产品码,为固定值 **/
    public static String PRODUCT_CODE = "QUICK_MSECURITY_PAY";

    // 接收通知的接口名
//    public static String service = "mobile.securitypay.pay";

    /** 统一下单地址（生成APP支付订单信息） **/
    public static final String UNIFIEDORDER_URL = "https://openapi.alipay.com/gateway.do";
    /** 交易查询地址 **/
    public static final String QUERYORDER_URL = "https://openapi.alipay.com/gateway.do";
    /** 支付成功回调 **/
//    public static final String NOTIFY_URL = "https://www.cheyifu2016.com:8443/alipay/payNotify";
    public static final String NOTIFY_URL = "http://www.cheyifu2016.com:8890/alipay/payNotify";
//    public static final String NOTIFY_URL = "http://www.cheyifu2016.com:9890/alipay/payNotify";

    /** 异步通知返回给支付宝的字段 **/
    public static final String NOTIFY_RETURN_SUCCESS = "success";

    /** 异步通知返回给支付宝的字段 **/
    public static final String NOTIFY_RETURN_FAIL = "failure";
}

